import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
import { routes } from './router'
import { HashRouter as Router, useRoutes } from 'react-router-dom'
const GenerateRoutes: React.FC = () => {
  const Routes = useRoutes(routes)
  return Routes
}
ReactDOM.createRoot(document.getElementById('root')!).render(
  // <React.StrictMode>
  <Router>
    <GenerateRoutes />
  </Router>
  // </React.StrictMode>,
)
